<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增页面</title>
    <script src="js/jquery.js"></script>
    <style>
        div{
            text-align: center;
            align-content: center;
        }
    </style>
    <script>
        $(function (){
            $("#close").click(function (){
                history.back();
            })
        })
    </script>
</head>
<body>
<form action="/add" method="post">
    <div>
        <table border="1px">
            <tr>
                <td colspan="2"><h2>添加核酸检查信息</h2></td>
            </tr>
            <tr>
                <td>被检查人姓名(*)</td>
                <td><input type="text" name="assayUser" size="20"/></td>
            </tr>
            <tr>
                <td>被检测人手机号(*)</td>
                <td><input type="text" name="phone" size="20"/></td>
            </tr>
            <tr>
                <td>被检测人身份证号(*)</td>
                <td><input type="text" name="cardNum" size="20"/></td>
            </tr>
            <tr>
                <td>检测机构(*)</td>
                <td>
                    <select name="hospitalId">
                        <option th:value="0">--请选择--</option>
                        <option th:each="namer : ${getHosptialName}" th:text="${namer.name}" th:value="${namer.id}" ></option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>检测日期(*)</td>
                <td><input type="text" name="assayTime" size="20"/></td>
            </tr>
            <tr>
                <td COLSPAN="2"><input type="submit" value="添加"/>
                    &nbsp;&nbsp;<a href="#" id="close"><input type="button" value="返回"/></a>
                </td>
            </tr>
        </table>

    </div>
</form>

</body>
</html>